﻿namespace WorkBasket.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    using System.Linq;
    using WorkBasket.Data.Entities;

    internal sealed class Configuration : DbMigrationsConfiguration<WorkBasket.Infrastructure.MyContext>
    {
        public Configuration()
        {

            AutomaticMigrationDataLossAllowed = true;
            AutomaticMigrationsEnabled = true;
            



        }

        protected override void Seed(WorkBasket.Infrastructure.MyContext context)
        {
            //context.Workflows.AddOrUpdate(
            //p => p.WorkflowName,
            //  new Workflow { WorkflowName = "Workflow1" },
            //  new Workflow { WorkflowName = "Workflow2" },
            //  new Workflow { WorkflowName = "Workflow3" }
            //);

            //context.Fields.AddOrUpdate(
            //p => p.FieldName,
            //   new Field { FieldName = "Field 1", WorkflowID = 1, FieldType = "Text" },
            //   new Field { FieldName = "Field 2", WorkflowID = 1, FieldType = "Number" },
            //   new Field { FieldName = "Field 3", WorkflowID = 2, FieldType = "Date" },
            //   new Field { FieldName = "Field 4", WorkflowID = 2, FieldType = "Calculation" },
            //   new Field { FieldName = "Field 5", WorkflowID = 3, FieldType = "Text" },
            //   new Field { FieldName = "Field 6", WorkflowID = 3, FieldType = "Number" }
            //);
        }
    }
}
